﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using SusyGame_Model;

namespace SusyGame_Game.GUI
{
    public class Toolbar
    {
        private Texture2D texture;
        private SpriteFont font;
        private Vector2 position;
        private Vector2 textPosition;

        public Toolbar(Texture2D texture, SpriteFont font, Vector2 position)
        {
            this.texture = texture;
            this.font = font;

            this.position = position;
            textPosition = new Vector2(1000, position.Y + 20);
        }

        public void Draw(SpriteBatch spriteBatch, Player player)
        {
            //spriteBatch.Draw(texture, position, Color.White);
            spriteBatch.Draw(texture,position,new Rectangle((int)position.X,(int)position.Y,player.Map.Ancho*150,player.Map.Alto*80),Color.White);

            string text = string.Format("Gold : {0}", player.Points);
            spriteBatch.DrawString(font, text, textPosition, Color.White);
        }
    }
}
